package com.example.minefieldkeepercloud.util;

import java.util.Calendar;

/**
 * 日期辅助类
 */
public class DataHelper {

    public static int getYear() {
        return Integer.valueOf(Calendar.getInstance().get(Calendar.YEAR));
    }

    public static int getMonth() {
        return Integer.valueOf(Calendar.getInstance().get(Calendar.MONTH));
    }

    public static int getDay() {
        return Integer.valueOf(Calendar.getInstance().get(Calendar.DAY_OF_MONTH))-1;
    }
}
